package com.aidex.biz.domain;

import com.aidex.common.annotation.Excel;
import com.aidex.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.validation.constraints.NotBlank;

/**
 * 友情小程序链接对象 biz_friends_links
 *
 * @author sean
 * @email 2074844820@qq.com
 * @date 2022-10-21
 */
@Data
public class FriendsLinks extends BaseEntity<FriendsLinks> {
    private static final long serialVersionUID = 1L;


    /**
     * 小程序名称
     */
    @Excel(name = "小程序名称")
    private String name;

    /**
     * 链接地址
     */
    @Excel(name = "链接地址")
    private String links;

    /**
     * 图标地址
     */
    private String icon;

    /**
     * 点击次数
     */
    private Integer clicks;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 状态（0正常 1 停用）
     */
    @NotBlank(message = "状态（0正常 1 停用）不允许为空")
    private String status;

    private String appid;


    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setLinks(String links) {
        this.links = links;
    }

    public String getLinks() {
        return links;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getIcon() {
        return icon;
    }

    public void setClicks(Integer clicks) {
        this.clicks = clicks;
    }

    public Integer getClicks() {
        return clicks;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Integer getSort() {
        return sort;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatus() {
        return status;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("userId", getUserId()).append("deptId", getDeptId()).append("userName", getUserName()).append("deptName", getDeptName()).append("companyId", getCompanyId()).append("name", getName()).append("links", getLinks()).append("icon", getIcon()).append("clicks", getClicks()).append("sort", getSort()).append("status", getStatus()).append("remark", getRemark()).append("id", getId()).append("createBy", getCreateBy()).append("createDept", getCreateDept()).append("createTime", getCreateTime()).append("updateBy", getUpdateBy()).append("updateTime", getUpdateTime()).append("updateIp", getUpdateIp()).append("version", getVersion()).append("delFlag", getDelFlag()).toString();
    }
}
